@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>账目核算</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <!--<div class="col-sm-3">
                                <div class="form-group">
                                        <input class="form-control" id="condition" name="condition"  placeholder="报账人/交易对象/关联单号/单号" >
                                </div>
                            </div>-->
                            <!--<div class="col-sm-3">
                                <div class="layui-input-inline" style="width: 180px">
                                    <select name="income" id="income" class="layui-select"  style="width: 180px">
                                        <option value="">请选择结算来源</option>
                                        <option value="1">收货</option>
                                        <option value="2">自提</option>
                                        <option value="3">配送</option>
                                        <option value="4">中转</option>
                                        <option value="5">改单</option>
                                        <option value="6">抹平</option>
                                        <option value="7">转结(本单抹平)</option>
                                        <option value="8">转结</option>
                                    </select>
                                </div>
                            </div>-->
                            <!--<div class="col-sm-3">
                                <div class="layui-input-inline" style="width:80px">
                                    <select name="orderStatus" id="isCheck" class="layui-select"  style="width: 80px">
                                        <option value="0">未对账</option>
                                        <option value="1">已对账</option>
                                    </select>
                                </div>
                            </div>-->
                            <div class="col-sm-3 ">
                                <div class="input-group">
                                    <div class="input-group-btn">
                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"   type="button">开始日期</button>
                                    </div>
                                    <input type="text" class="form-control layer-date"    id="beginTime" value="${beginTime}" readonly />
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <div class="input-group-btn">
                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"   type="button">结束日期</button>
                                    </div>
                                    <!--  onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"  -->
                                    <input type="text" class="form-control layer-date"
                                          id="endTime" value="${endTime}"/>
                                </div>
                            </div>
                            <div class="col-sm-3 ">
                                <div class="input-group">
                                    <div class="input-group-btn">
                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"   type="button">单号 </button>
                                    </div>
                                    <input type="text" class="form-control" id="code" placeholder="" />
                                </div>
                            </div>
                            <div class="col-sm-3" > <#button name="搜索" icon="fa-search" clickFun="TBill.search()"/></div>
                        </div>

                        <div class="row">
                            <div class="col-sm-6">

                                <!--<#button name="查看明细" icon="fa-plus" clickFun="TBill.openAddTBill()" space="true"  />-->
                                <#button name="确认对账" icon="fa-plus" clickFun="TBill.confirmTBill()" />
                                <!--<#button name="查看汇总" icon="fa-plus" clickFun="TBill.delete()" />-->
                            </div>
                        </div>
                        <div id="offHight"></div>
                        <#table id="TBillTable"/>
                        <br>
                        <div class="row">
                            <div class="col-sm-6 ">
                                <#input id="cash" name="现金" value="0"  />
                                <#input id="weixin" name="微信收入" value="0" />
                            </div>

                            <div class="col-sm-6">
                                <#input id="alipay" name="支付宝收入" value="0" />
                                <#input id="bank" name="银卡收入" value="0"  />
                            </div>

                        </div>

                        <div class="row">
                            <div class="col-sm-6 ">
                                <#input id="zj_money" name="挂账金额合计" value="0"  />
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['laydate'], function () {
        var  laydate = layui.laydate;

        //日期
        laydate.render({
            elem: '#endTime'
            ,format: 'yyyy-MM-dd HH:mm:ss'
        });

        //日期
        laydate.render({
            elem: '#startTime'
            ,format: 'yyyy-MM-dd HH:mm:ss'
        });

    })
</script>
<script src="${ctxPath}/static/modular/system/tBill/accounting.js"></script>
@}
